﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Specialized;
using System.Configuration;
using System.Xml;

namespace Boiling.Common
{
    public class BoilingConfiguration
    {
        public const string connectionstring = "Data Source=59.66.143.36\\SQLEXPRESS;database = boiling;uid = sa;pwd = 19891015chen";
        public static string dbConnnectionstring
        {
            get
            {
                return connectionstring;
            }
        }
        public BoilingConfiguration()
        {
        }


        //
        // Constant values for all expected entries in the DuwamishConfiguration section
        //
        private const String WEB_ENABLEPAGECACHE = "Duwamish.Web.EnablePageCache";
        private const String WEB_PAGECACHEEXPIRESINSECONDS = "Duwamish.Web.PageCacheExpiresInSeconds";
        private const String WEB_ENABLESSL = "Duwamish.Web.EnableSsl";
        //
        // Static member variables. These contain the application settings
        //   from Config.Web, or the default values.
        //
        //
        // Constant values for all of the default settings.
        //
        private const bool WEB_ENABLEPAGECACHE_DEFAULT = true;
        private const int WEB_PAGECACHEEXPIRESINSECONDS_DEFAULT = 3600;
        private const bool WEB_ENABLESSL_DEFAULT = false;


        private static bool enablePageCache;
        private static int pageCacheExpiresInSeconds;
        private static bool enableSsl;
        /// <value>
        ///     Property EnablePageCache is used to get Duwamish's page cache setting. 
        ///     <remarks>Returns true if page caching is enabled, false otherwise.</remarks>
        /// </value>
        public static bool EnablePageCache
        {
            get
            {
                return enablePageCache;
            }
        }

        /// <value>
        ///     Property PageCacheExpiresInSeconds is used to get Duwamish's page cache expiration timeout setting.  
        ///     <remarks>The number of seconds before a page cache should expire.</remarks>
        /// </value>
        public static int PageCacheExpiresInSeconds
        {
            get
            {
                return pageCacheExpiresInSeconds;
            }
        }

    }
}
